/*
 * Target.h
 *
 *  Created on: Sep 22, 2012
 *      Author: HUNG
 */

#ifndef __TARGETTRACKING_TARGET_H_
#define __TARGETTRACKING_TARGET_H_

#include <omnetpp.h>
#include "TrackingDef.h"
#include "Sensor.h"
#include "Message_m.h"

/**
 * TODO - Generated class
 */
class Target : public cSimpleModule
{
    public:
        int pos_index, pos_num;
        int ID;
        double X[10000], Y[10000];
        double xpos, ypos;
        double speed;
        double heading;
        double timeStep;
        double X_MAX;
        double Y_MAX;
        bool isMove;
        double ssRange;
        Sensor *cluster[NUMBERNODES]; //cac sensor cam bien duoc muc tieu
        int sensorIDProcess[NUMBERNODES];
        int numSSProcess;
        int total;
        int step;
        int typeTrajectory;

        virtual void initialize();
        virtual void handleMessage(cMessage *msg);
        void setPosition(double x, double y);
        void storeID(int Id);
        void startEvent();
};

#endif
